<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" href="../../css/aui.css">
    <link rel="stylesheet" href="../../css/normalUser.css">
    <link rel="stylesheet" href="../../css/pulice.css">
    <script src="../../js/api.js"></script>
    <script src="../../js/libs/zepto.min.js"></script>
    <script src="../../js/vue.min.js"></script>
    <script src="../../js/vue-resource.min.js"></script>
    <script src="../../js/aui-toast.js"></script>
    <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
    <script>
        setToken();
        $(function () {
            $('.hm-bar').load('../../data/headerOther.html',function (data) {
                $(this).find('.head-main').text('用户身份');
                $(this).find('.hm-bar-box').css('position','static');
                $(this).find('.head-left').on('tap',function () {
                    window.history.back();
                });
            });
            var app = new Vue({
                el:'#app',
                data:{
                    account:{}
                },
                mounted:function () {
                    this.$nextTick(function () {
                        this.aaa();
                    })
                },
                methods: {
                    aaa:function () {
                        this.$http.get(SURL+"app/users/identity").then(function (res) {
                            console.log(res.body.data);
                            if(res.body.status == 1) {
                                this.account = res.body.data;
                            }else {

                            }
                        })
                    }
                }
            })
        })
    </script>
    <title>用户身份</title>
</head>
<body>
    <div class="hm-bar"></div>
    <div id="app">
        <div class="rz-status-box">
            <div class="rz-status">
                <div class="rz-tit" @click="location.href='../normalUser/rzks.html'">
                    <span>个人认证</span>
                    <img src="../../img/grrzIcon.png" alt=""/>
                </div>
                <div class="rz-txt">
                    为了您的资金安全，请进行实名认证
                </div>
                <button class="btn btn-blue rz-btn" v-if="account.realnameStatus == 0">
                    申请中
                </button>
                <button class="btn btn-blue rz-btn" v-if="account.realnameStatus == 1">
                    已认证
                </button>
                <button class="btn btn-blue rz-btn" v-if="account.realnameStatus == 2">
                    不通过
                </button>
            </div>
            <div class="rz-status">
                <div class="rz-tit">
                    <span>用户升级</span>
                    <img src="../../img/yhsjIcon.png" alt=""/>
                </div>
                <div class="rz-txt">
                    个人用户可升级为主管或经理级别
                </div>
                <button class="btn btn-color2 rz-btn" v-if="account.upgradeStatus == 3">
                    已审核
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.upgradeStatus == -100">
                    未申请
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.upgradeStatus == 1">
                    审核中
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.upgradeStatus == 0">
                    未支付
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.upgradeStatus == 2">
                    已取消
                </button>
            </div>
            <div class="rz-status">
                <div class="rz-tit">
                    <span>联盟管家</span>
                    <img src="../../img/lmsjIcon.png" alt=""/>
                </div>
                <div class="rz-txt">
                    申请为联盟商家可享有更多权益
                </div>
                <button class="btn btn-color2 rz-btn" v-if="account.approveStatus == -1">
                    拒绝
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.approveStatus == 0">
                    未审核
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.approveStatus == 1">
                    已审核
                </button>
            </div>
            <div class="rz-status">
                <div class="rz-tit">
                    <span>线上商家</span>
                    <img src="../../img/xssjIcon.png" alt=""/>
                </div>
                <div class="rz-txt">
                    个人用户可升级为主管或经理级别
                </div>
                <button class="btn btn-color2 rz-btn" v-if="account.shopStatus == 1">
                    未审核
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.shopStatus == 2">
                    拒绝
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.shopStatus == 3">
                    审核通过
                </button>
            </div>
            <div class="rz-status">
                <div class="rz-tit">
                    <span>申请代理</span>
                    <img src="../../img/sqdlIcon.png" alt=""/>
                </div>
                <div class="rz-txt">
                    申请为代理既可参与分红
                </div>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == -2">
                    二审拒绝
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == -1">
                    一审拒绝
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == 0">
                    审核中
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == 1">
                    一审同意
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == 2">
                    汇款单已上传
                </button>
                <button class="btn btn-color2 rz-btn" v-if="account.agentStatus == 3">
                    二审完结
                </button>
            </div>
        </div>
    </div>
</body>
</html>